# -*- coding: utf-8 -*-

# Importing the controllers that will handle
# the generation of the pages:
from controllers import ajax,mainh,optimizerMockSolver

# Importing some of Google's AppEngine modules:
import webapp2
from google.appengine.ext.webapp import util

# This is the main method that maps the URLs
# of bid-it application with the controller classes.
# If a URL is requested that is not listed here,
# a 404 error is displayed.

application = webapp2.WSGIApplication([
        ('/', mainh.MainHandler),
        ('/ajax/courses-list-by-dept/', ajax.getCoursesListByDept),
        ('/optimizer/', optimizerMockSolver)],
        debug=True)

def main():
    util.run_wsgi_app(application)
    
if __name__ == '__main__':
    main()

